package net.lab1024.sa.admin.module.users.consumablesinventory.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.time.LocalDate;
import lombok.Data;

/**
 * 实训室耗材入库 实体类
 *
 * @Author xixi
 * @Date 2024-11-08 13:31:03
 * @Copyright 🐂🐎bloc
 */

@Data
@TableName("t_consumables_inventory")
public class ConsumablesInventoryEntity {

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 入库日期
     */
    private Timestamp entryDate;

    /**
     * 序号
     */


    /**
     * 类别
     */
    private Integer category;

    /**
     * 物料代码
     */
    private String materialCode;

    /**
     * 物料名称
     */
    private String materialName;

    /**
     * 规格型号
     */
    private String specificationModel;

    /**
     * 采购数量
     */
    private Integer purchaseQuantity;

    /**
     * 单价（元）
     */
    private BigDecimal unitPrice;

    /**
     * 总价（元）
     */
    private BigDecimal totalPrice;

    /**
     * 采购途径
     */
    private String purchaseChannel;

    /**
     * 存放地点
     */
    private String storageLocation;

    /**
     * 备注
     */
    private String remark;

    /**
     * 采购人
     */
    private Integer purchaser;

    /**
     * 验收人员
     */
    private Integer inspector;
    @TableField("accept_status")
    private int status;

    /**
     * 仓库管理员
     */
    private Integer warehouseManager;
    @TableField(exist = false)
    private String inspectorActualName;
    @TableField(exist = false)
    private String purchaserActualName;
    @TableField(exist = false)
    private String warehouseManagerActualName;

    private String unit;
    @TableField(exist = false)
    private String categoryName;

}
